<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        * {
            margin: 0px;
            padding: 0px;
        }
        #father{
            margin: 20px auto;
            height:300px;
            width:300px;
            border:1px solid red;
            padding: 10px;
        }
        a{
            width: 100px;
            height: 100px;
            display: inline-block;
            text-decoration: none;
            line-height: 100px;
            text-align: center;
            background-color: pink;

        }
        a:hover{
            background-color: yellow;
        }
        a:nth-of-type(2){
            /*相对定位*/
            position: relative;
            left: 100px;
        }
        a:nth-of-type(3){
            position: relative;
            top: 100px;
        }
        a:nth-of-type(4){
            position: relative;
            left: 100px;
            top: 100px;
        }
        a:nth-of-type(5){
            position: relative;
            bottom: 100px;
            right: -100px;
        }
    </style>
</head>
<body>

<div id="father">
    <a href="">one</a>
    <a href="">two</a>
    <a href="">three</a>
    <a href="">four</a>
    <a href="">five</a>
</div>
</body>
</html>